// 封装网络请求
import instance from '../utils/request.js'

// 请求频道数据
function apiGetGataList () {
  return instance({
    url: '/v1_0/channels'
  })
}
export { apiGetGataList }

// 请求新闻列表
function apiGetNewList (caraId) {
  return instance({
    url: `/v1_1/articles?channel_id=${caraId}&timestamp=${Date.now()}&with_top=1`
  })
}
export { apiGetNewList }
